package com.ny.wlw;

public class Animal {
     int a = 10;
    private String name;
    private int age;
    private String color;

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }
    public void play(){
        System.out.println("发出声音");
    }

    //    set : 赋值   =》get：获取
    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}
